package com.atguigu.gulimall.product.feign;

import com.atguigu.common.utils.R;
import com.atguigu.common.to.SkuHasStockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author: WackyBoy
 * @Date: 2021/6/28 20:44
 */
@FeignClient("gulimall-ware")
public interface WareFeignService {

    /**
     * 1. R设计成泛型
     * 2. 直接返回类型
     * 3. 自己封装
     * @param skuIds
     * @return
     */
    @PostMapping("ware/waresku/hasstock")
    R getSkusHasStock(@RequestBody List<Long> skuIds);

}
